<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-jmeterUser-edit" th:object="${jmeterUser}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">姓名：</label>
				<div class="col-sm-8">
					<input id="name" name="name" th:field="*{name}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">email：</label>
				<div class="col-sm-8">
					<input id="email" name="email" th:field="*{email}" class="form-control" type="text">
				</div>
			</div>

			<label class="col-sm-3 control-label">状态：</label>
			<div class="radio-box">
				<input type="radio"  name="status" value="1"  th:checked="${jmeterUser.status == 1 ? true : false}"   >
				<label style="color:#2b31dc" th:text="启用" ></label>
			</div>
			<div class="radio-box">
				<input type="radio" name="status" value="0" th:checked="${jmeterUser.status == 0 ? true : false}">
				<label style="color:#2b31dc" th:text="禁用"></label>
			</div>

		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "jmeter/jmeterUser";
		$("#form-jmeterUser-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-jmeterUser-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
